package com.work.bean;

public class Class {
    private String cname;
    private Integer id;
    public Class(Integer id,String cname) {
        this.id = id;
        this.cname = cname;
    }

    public Class() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    @Override
    public String toString() {
        return "Class{" +
                "cname='" + cname + '\'' +
                ", id=" + id +
                '}';
    }
}
